require.config({
    baseUrl: '/',
    waitSeconds: 30,
    urlArgs: 'bust=' + new Date().getTime(),
    paths: {
        jquery: 'static/lib/jquery/jquery',
        uiBootstrap: 'static/lib/angular-plugins/ui-bootstrap-tpls-1.2.4.min',
        uiRouter: 'static/lib/angular-plugins/angular-ui-router.min',
        angular: 'static/lib/angularjs/angular.min',
        angularLocale: 'static/lib/angularjs/angular-locale_zh-cn'
    },
    shim: {
        'angular': {deps: ['jquery'], exports: 'angular'},
        'uiBootstrap': ['angular', 'angularLocale'],
        'uiRouter': ['angular']
    }
});

require(['angular'], function (angular) {
    boot();
    function boot() {

        var paths = ['static/src/config/config'];
        var moduleNames = ['configApp'];

        require(paths, function () {
            angular.bootstrap(document.body, moduleNames)
        })
    }
});